package com.zhl.media.app.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;

@Entity
public class MediaPhoto implements Serializable {
    private static final long serialVersionUID = -8940196742313994740L;

    private String photoPath;
    private long photoDate;
    @Id
    private String mediaId;
    // 纬度
    private double latitude;
    // 经度
    private double longitude;
    @Transient
    private int upload = 0;
    @Transient
    private Boolean isUploader = false;

    //1正常拍照 2重拍
    private int reload;

    @Generated(hash = 639460515)
    public MediaPhoto() {
    }


    @Generated(hash = 1847080828)
    public MediaPhoto(String photoPath, long photoDate, String mediaId,
            double latitude, double longitude, int reload) {
        this.photoPath = photoPath;
        this.photoDate = photoDate;
        this.mediaId = mediaId;
        this.latitude = latitude;
        this.longitude = longitude;
        this.reload = reload;
    }


    public String getPhotoPath() {
        return photoPath;
    }

    public void setPhotoPath(String photoPath) {
        this.photoPath = photoPath;
    }


    public long getPhotoDate() {
        return photoDate;
    }

    public void setPhotoDate(long photoDate) {
        this.photoDate = photoDate;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public int getUpload() {
        return upload;
    }

    public void setUpload(int upload) {
        this.upload = upload;
    }

    public int getReload() {
        return reload;
    }

    public void setReload(int reload) {
        this.reload = reload;
    }

    public Boolean getUploader() {
        return isUploader;
    }

    public void setUploader(Boolean uploader) {
        isUploader = uploader;
    }
}
